package com.wulab.backend.dto;


import lombok.Data;

@Data
public class ApiResponse<T> {
    private boolean success;
    private String message;
    private T data;
    private long total;

    // 构造函数
    public ApiResponse(boolean success, String message) {
        this.success = success;
        this.message = message;
    }

    public ApiResponse(boolean success, String message, T data) {
        this.success = success;
        this.message = message;
        this.data = data;
    }

    public ApiResponse(boolean success, String message, T data, long total) {
        this.success = success;
        this.message = message;
        this.data = data;
        this.total = total;
    }
}